package com.evony.common.module.colony 
{
    import com.evony.common.*;
    import com.evony.common.beans.*;
    
    public class OverviewColonyCastleRespone extends com.evony.common.BaseBean
    {
        public function OverviewColonyCastleRespone(arg1:String, arg2:Object, arg3:Boolean=false, arg4:Boolean=false)
        {
            var loc1:*=0;
            super(arg1, arg3, arg4);
            if (arg2.castleBean != null) 
            {
                this.castleBean = new com.evony.common.beans.CastleBean(arg2.castleBean);
            }
            if (arg2.errorMsg != null) 
            {
                this.errorMsg = arg2.errorMsg;
            }
            if (arg2.msg != null) 
            {
                this.msg = arg2.msg;
            }
            if (arg2.ok != null) 
            {
                this.ok = arg2.ok;
            }
            if (arg2.packageId != null) 
            {
                this.packageId = arg2.packageId;
            }
            return;
        }

        public override function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="---- OverviewColonyCastleRespone ----\n";
            if (castleBean == null) 
            {
                loc2 = loc2 + (arg1 + "castleBean = null\n");
            }
            else 
            {
                loc2 = loc2 + this.castleBean.toDebugString(arg1 + "castleBean.");
            }
            loc2 = loc2 + (arg1 + "errorMsg = " + this.errorMsg + "\n");
            loc2 = loc2 + (arg1 + "msg = " + this.msg + "\n");
            loc2 = loc2 + (arg1 + "ok = " + this.ok + "\n");
            loc2 = loc2 + (arg1 + "packageId = " + this.packageId + "\n");
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.module.colony.OverviewColonyCastleRespone):void
        {
            if (castleBean == null) 
            {
                arg1.castleBean = null;
            }
            else 
            {
                this.castleBean.copyTo(arg1.castleBean);
            }
            arg1.errorMsg = this.errorMsg;
            arg1.msg = this.msg;
            arg1.ok = this.ok;
            arg1.packageId = this.packageId;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.castleBean = this.castleBean.toObject();
            loc1.errorMsg = this.errorMsg;
            loc1.msg = this.msg;
            loc1.ok = this.ok;
            loc1.packageId = this.packageId;
            return loc1;
        }

        public var packageId:Number;

        public var msg:String;

        public var castleBean:com.evony.common.beans.CastleBean;

        public var errorMsg:String;

        public var ok:int;
    }
}
